package com.waitingresult.common.constant;

import com.google.common.collect.Lists;

import java.util.List;

/**
 * All right reserved,Designed By WangShuai
 * 系统常量
 *
 * @author : WangShuai
 * @version : V1.0
 * @ClassName : Constants
 * @Description : 系统常量
 * @date : 2021/9/8 8:50
 */
@SuppressWarnings("ALL")
public interface Constants {

    /**
     *
     * 认证头
     *
     * @return :
     * @author : WangShuai
     * @last update date : 2021/9/23 20:37
     * @param
     */
    String TOKEN = "token";


    /**
     * 短信
     */
    interface SmsSuffix {
        /**
         * 短信验证码的长度
         */
        Integer NUMBER_STRING_LENTH = 6;

        String STRING_SUFFIX = "identity_";
    }

    /**
     * 文件后缀名
     */
    interface FileSuffix {
        List<String> UPLOAD_IMAGE_FORMAT = Lists.newArrayList("jpg", "jpeg", "png", "gif");
        List<String> UPLOAD_FILE_FORMAT = Lists.newArrayList("doc", "docx", "xls", "xlsx", "ppt", "pptx", "zip", "rar", "pdf", "jpg", "jpeg", "gif", "png");
        List<String> UPLOAD_AUDIO_FORMAT = Lists.newArrayList("mp3");
        List<String> UPLOAD_VIDEO_FORMAT = Lists.newArrayList("mp4");
    }

    /**
     * 系统模块
     */
    interface ProductModelName {
        String ADMIN = "ADMIN";
        String WEB = "WEB";
        String SYSTEM = "SYSTEM";
    }

    /**
     * redis Key
     */
    interface RedisKeys {
        String SYSTEM_USER_TOKEN = ProductModelName.ADMIN + "_USER_";
    }

    /**
     * 返回状态码
     */
    interface ResultStatusCode {
        Integer SUCCESS = 200;
        Integer ERROR = 500;
        Integer NEED_LOGIN = 201;
        Integer NO_PERMISSION = 202;
    }
}
